interface DeleteInvoiceTitleAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface DeleteInvoiceTitleAPIData {
  id: string
}

export function deleteInvoiceTitleAPI(data: DeleteInvoiceTitleAPIData, token: string) {
  return httpInstance.post<DeleteInvoiceTitleAPIResData, DeleteInvoiceTitleAPIData>(
    '/api/order/delinvoiceheader',
    data,
    { headers: { token } },
  )
}
